package fit.conceptmap.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the node database table.
 * 
 */
@Entity
@NamedQuery(name="Node.findAll", query="SELECT n FROM Node n")
public class Node implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String idNode;

	private String loc;

	private int nodeKey;

	private String text;

	//bi-directional many-to-one association to Concept
	@ManyToOne
	@JoinColumn(name="idConcept")
	private Concept concept;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="owner")
	private User user;

	public Node() {
	}

	public String getIdNode() {
		return this.idNode;
	}

	public void setIdNode(String idNode) {
		this.idNode = idNode;
	}

	public String getLoc() {
		return this.loc;
	}

	public void setLoc(String loc) {
		this.loc = loc;
	}

	public int getNodeKey() {
		return this.nodeKey;
	}

	public void setNodeKey(int nodeKey) {
		this.nodeKey = nodeKey;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Concept getConcept() {
		return this.concept;
	}

	public void setConcept(Concept concept) {
		this.concept = concept;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}